package com.alifi.crm.dal.lottery;

import org.springframework.stereotype.Repository;

import com.alifi.crm.dal.IbatisCRUDDAO;
import com.alifi.crm.dal.object.AmountDO;
import com.alifi.crm.dal.object.EmployeeDO;

@Repository("amountDAO")
public class AmountDAOImpl extends IbatisCRUDDAO<EmployeeDO> implements AmountDAO {

    @Override
    protected String getNamespace() {
        return "act_amount";
    }

    @Override
    public AmountDO getAmount(String employeeNum) {
        return (AmountDO)this.getSqlMapClientTemplate().queryForObject(this.genStmt("selectByEmployeeNum"), employeeNum);
    }
    
}
